<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Taxonomies'); ?></div>
    <h2>Taxonomies</h2>
    <p>Taxonomy is for categorizing content</p>
           
    <div class="entry">
        <div class="sep"></div>
    </div>
    <table>
        <thead>
            <tr>
            	<th scope="col" class="chb"><input type="checkbox" onclick="selectAll(this);"></th>
                <th scope="col" width="25%"><?php  echo Yii::t('AdmincpModule.admincp', 'Name');?></th>
                <th scope="col" width="15%"><?php  echo Yii::t('AdmincpModule.admincp', 'Code');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Description');?></th>                
            </tr>
        </thead>
            
        <tbody>
        
        <?php if(!empty($arrTaxonomies)):?>
			<?php foreach($arrTaxonomies as $i=>$R):?>
            <tr>
                <td class="align-center"><input type="checkbox"></td>
                <td>
					<strong><?php echo $R['taxonomy_name']; ?></strong>
                	<p style="margin:0; padding: 2px 0 0;">
                    	<a href="<?php echo LINK_ADMINCP_TAXONOMIES.'/fields/?taxonomy='.$R['taxonomy_id']; ?>">Custom fields</a> | 
                        <a href="<?php echo LINK_ADMINCP_TAXONOMIES.'/form/?id='.$R['taxonomy_id']; ?>"  title="Edit">Edit</a> | 
                        <a href="<?php echo LINK_ADMINCP_TAXONOMIES.'/delete/?id='.$R['taxonomy_id']; ?>" title="Delete">Delete</a> 
                    </p>
                </td>
                <td><?php echo $R['taxonomy_code']; ?></td>
                <td><?php echo $R['taxonomy_description']; ?></td>               
            </tr>
            <?php endforeach; ?>
		<?php else: ?>
            <tr>
                <td colspan="7">No data found!</td>
            </tr>
        <?php endif; ?>
        </tbody>
    </table>
    <div class="entry">
        <?php /*$this->widget('CLinkPager', array(
			'currentPage'=>$objPages->getCurrentPage()-1,
			'pages' => $objPages,
		))*/ ?>
        <?php $this->widget('Pagination', array(
			'pages' => $objPages,
		)) ?>
        <div class="sep"></div>		
        <a class="button add" href="<?php echo LINK_ADMINCP_TAXONOMIES.'/form'; ?>"><?php echo Yii::t('AdmincpModule.admincp', 'Add Taxonomy'); ?></a> 
    </div>
</div>